package com.thy.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hospital.common.pojo.TDepartment;
import com.hospital.common.vo.management.module.DepartmentVo;
import com.hospital.common.vo.management.module.DoctorInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 科室表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-09-11
 */
public interface TDepartmentMapper extends BaseMapper<TDepartment> {

    List<DepartmentVo> getAllDepartment();

    List<DoctorInfoVo> getDoctorByDepartmentId(@Param("departmentId") Long departmentId);

    IPage<DoctorInfoVo> getDoctorByDepartmentIds(@Param("departmentIds") List<Long> departmentIds,@Param("page") Page<DoctorInfoVo> page);
}
